/*
   Copyright (c) 2019 Shanghai Xuanzi Technology Co. Ltd https://xuanzi.ltd
   XZMindMap is licensed under the Mulan PSL v1.
   You can use this software according to the terms and conditions of the Mulan PSL v1.
   You may obtain a copy of Mulan PSL v1 at:
      http://license.coscl.org.cn/MulanPSL
   THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
   IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
   PURPOSE.
   See the Mulan PSL v1 for more details.

*/

package xuanzi.openmind.shapes;

import xuanzi.commons.graphics.Canvas;
import xuanzi.openmind.nodes.Node;

public class Round extends Shape { 

	float rad = 5;
	
	public Round() {
		 
	}
	
	@Override
	public void draw(Canvas canvas) { 
	//	System.out.println("draw "+this);
		{ 
			paint.fill(node.renderBuffer.backgroundColor);
			canvas.drawRect(node.renderBuffer.shapeBound,rad,paint);  
		}{
		}{
			paint.fill = false;
			paint.borderSize =  node.renderBuffer.borderSize;
			paint.borderColor = node.renderBuffer.borderColor;
			canvas.drawRect(node.renderBuffer.shapeBound,rad,paint); 

		//	canvas.drawRect(node.renderBuffer.shapeBound,paint); 
		}
	}

}
 